<!---
    Title:      EPAR1.1 
    Author:     Bruce Frick
    Purpose:    Step2 HR Acknowledge
--->

<cfset BASE = CreateObject("component", "#session.rootDir#.cfc.base") />
<cfinclude template="/code_lib/SCF_Employee.cfm">
<cfinclude template="/code_lib/SCF_HR.cfm">
<cfinclude template="/code_lib/SCF_REGEX.cfm">
<cfoutput>
<!---HTML header, css links, js links, and page title--->
#BASE.htmlTerminationHeader(
    "", <!---JS links--->
    "", <!---CSS links--->
    "Step 2:  HR - Confirmation Request 1", <!---Page Title--->
    "Status" <!---Active Nav Link--->
)#
<!---HTML header, css links, js links, and page title--->


<cfif Session.bolAuth EQ True and (Session.strAuthType EQ Session.MANAGERS or Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR)>
    
    <cfset mainQueries = CreateObject("component", "#session.rootDir#.cfc.queries") />
    
    <cfset QUERIES = {
        GetStep2TerminationWaiting = CreateObject("component", "#session.rootDir#.cfc.statusQueries").funcGetTerminationSCFStepWaiting(20)        
    } />

    <h1 class="title">Step 2:  HR - Termination Acknowledge </h1>
    <div class="entry">    
		Welcome, #Session.arrEmpInfo.FirstName# #Session.arrEmpInfo.LastName#.
		In this step, we'll confirm the information provided by the manager 
		and allow you to make corrections and/or submit supporting documents. 
		<BR /> <BR />
        <cfif QUERIES.GetStep2TerminationWaiting.recordcount GT 0>
	        <table>
	            <tr>
	                <td valign="top">
	                    Please select an employee:       
	                </td>
	                <td>
	                    <cfform name="frmStep2" method="post" action="api.cfm?api=step2Termination_acknowledgement">
		                    <table>
		                        <tr>
		                            <td>
		                                <cfselect name='TermReqID' tabindex="10" onChange="this.form.submit()">
                                                
		                                    <option value = 0>-- Select an Employee --</option>
                                                                                                                                                        
		                                    <cfloop query="QUERIES.GetStep2TerminationWaiting">
                                                                                                                                                            
		                                        <cfset objTerm = SCF_Employee_GetEmployee(#QUERIES.GetStep2TerminationWaiting.RosettaID#)>
                                                                                                                                                                        
                                                <cfset QUERIES.WFCEmployeeObj = mainQueries.funcGettPersonsObj( 
                                                        mainQueries.funcGetRosettaObj( 
                                                            QUERIES.GetStep2TerminationWaiting.RosettaID 
                                                        ).HRProd_PersonIDNo ) />   
                                                                                                           
		                                        <option value="#QUERIES.GetStep2TerminationWaiting.TermReqID#">
                                                    #objTerm.Fullname#
                                                </option>
                                                
		                                    </cfloop>
		                                </cfselect>
		                            </td>
		                        </tr>
		                    </table>
	                    </cfform>  
	                </td>
	            </tr>
	        </table>
	    <cfelse>
	        <span class="error">At the present time, there are not any employees staged for termination.</span>
	    </cfif>
    
    </div>

<cfelse>
    <cfinclude template="../denied.cfm">
</cfif>


<!---HTML footer, closes html and body tags.  Any footer info goes here--->
#BASE.htmlTerminationFooter()#
<!---HTML footer, closes html and body tags.  Any footer info goes here--->
</cfoutput>